<include file="Public:pageHeader"/>
<script type="text/javascript" src="_STATIC_/js/My97DatePicker/WdatePicker.js"></script>
<link rel=" stylesheet" type="text/css" href="_STATIC_/css/member.css" />
<!--主区域-->
<div class="mainBox on">
    <div class="my-page">
        <div class="wrapper"">
        <div class="my_p">
            <include file="Member:memberLeft"/>
            <div class="my_form">
                <p class="m_p1">当前位置：商标管理</p>
                <div class="line"></div>
                <div id="searchBox">
                    <span>
                    商标编号：
                        <input type="text" id="trademark_sn" value="{$trademarkSn}" style="width:100px">
                    </span>
                    <span>
                    代理：<select name="agentId" id="agentId">
                            <option value="">全部</option>
                            <volist name="agentlist" id="vo" key="k">
                                <option value="{$vo.id}" <if condition="( $agentId == $vo.id )"> selected="selected" </if> >{$vo.user_name}</option>
                            </volist>
                        </select>
                    </span>
                    上架状态：<select name="trademarkStatus" id="trademarkStatus">
                            <option value="">全部</option>
                            <option value="0" <if condition="( $trademarkStatus != '' and $trademarkStatus == 0 )"> selected="selected" </if> >待上架</option>
                            <option value="1" <if condition="( $trademarkStatus != '' and $trademarkStatus == 1 )"> selected="selected" </if> >已上架</option>
                            <option value="2" <if condition="( $trademarkStatus != '' and $trademarkStatus == 2 )"> selected="selected" </if> >已下架</option>
                        </select>
                    </span>
                    <span>
                    卖出状态：<select name="saleStatus" id="saleStatus">
                            <option value="">全部</option>
                            <option value="0" <if condition="( $saleStatus != '' and $saleStatus == 0 )"> selected="selected" </if> >未卖出</option>
                            <option value="1" <if condition="( $saleStatus != '' and $saleStatus == 1 )"> selected="selected" </if> >已卖出</option>
                        </select>
                    </span>
                    <span>
                    标图状态：<select name="imageStatus" id="imageStatus">
                            <option value="">全部</option>
                            <option value="0" <if condition="( $imageStatus != '' and $imageStatus == 0 )"> selected="selected" </if> >不存在</option>
                            <option value="1" <if condition="( $imageStatus != '' and $imageStatus == 1 )"> selected="selected" </if> >存在</option>
                        </select>
                    </span>
                    <span>
                    <button class="table-top-btn" id="search-btn">搜索</button>
                        <button class="table-top-btn" id="export-btn">导出</button>
                    </span>
                </div>
                <!--
                <div class="batchActionBox">
                    <span>
                    <button class="table-top-btn" id="batch-action-btn">批量操作</button>
                    </span>
                </div>
                -->
                <table class="table">
                    <tr>
                        <!-- <th class="table-title" style="width:25px"><input type="checkbox" name="checkall"></th> -->
                        <th class="table-title" style="width:80px">商标编号</th>
                        <th class="table-title" style="width:80px">代理名称</th>
                        <th class="table-title" style="width:80px">联系方式</th>
                        <th class="table-title" style="width:40px">分类</th>
                        <th class="table-title" style="width:110px">商标名称</th>
                        <th class="table-title" style="width:65px">商标报价</th>
                        <th class="table-title" style="width:60px">上架状态</th>
                        <th class="table-title" style="width:60px">卖出状态</th>
                        <th class="table-title" style="width:100px">操作</th>
                    </tr>
                    <tbody>
                    <notempty name="trademarklist">
                        <volist name="trademarklist" id="vo" key="k">
                            <tr <?php if ( ( $k % 2) != 0 ) echo 'style="background: #F7F9FA"'; ?> >
                                <!-- <td class="table-content"><input type="checkbox" value="{$vo.id}" name="trademark"></td> -->
                                <td class="table-content" style="text-align: center">
                                    <a href="/trademarks/detail/tid/{$vo.id}" target="_blank">
                                    <notempty name="vo.thumb_image">
                                        <img src="{$vo.thumb_image}?v=<?php echo date('YmdHis'); ?>" style="max-width: 60px">
                                        <else/>
                                        <img src="{$vo.trademark_image}" style="max-width: 60px">
                                    </notempty>
                                    <br/>
                                    {$vo.trademark_sn}
                                    </a>
                                </td>
                                <td class="table-content">{$vo.user_name}</td>
                                <td class="table-content">{$vo.user_mobile}</td>
                                <td class="table-content">{$vo.trademark_cate}</td>
                                <td class="table-content">{$vo.trademark_name}</td>
                                <td class="table-content">{$vo.trademark_price}元</td>
                                <td class="table-content">
                                    <eq name="vo.status" value="0">待上架</eq>
                                    <eq name="vo.status" value="1">已上架</eq>
                                    <eq name="vo.status" value="2">已下架</eq>
                                </td>
                                <td class="table-content">
                                    <eq name="vo.sale_status" value="0">未卖出</eq>
                                    <eq name="vo.sale_status" value="1">已卖出</eq>
                                </td>

                                <td class="table-content">
                                    <button class="btn resetColorImage" trademarkid="{$vo.id}">重置彩图</button>
                                    <button class="btn delTrdemark" trademarkid="{$vo.id}">删除</button>
                                </td>
                            </tr>
                        </volist>
                        <else/>
                        <tr><td colspan="10" style="text-align: center; padding-top: 30px; font-size: 14px;">暂无数据</td></tr>
                    </notempty>
                    </tbody>
                </table>
                <div class="page">
                    <?php echo $page;?>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<!--底部区域-->
<include file="Public:pageFooter" />
</body>
</html>
<script type="text/javascript" src="_STATIC_/js/member-trademarksmanage.js?v={$staticVersion}" ></script>